import request from '@/utils/request'

// 查询拼团活动列表
export function listPtactive(query) {
  return request({
    url: '/business/ptactive/list',
    method: 'get',
    params: query
  })
}

// 查询拼团活动详细
export function getPtactive(id) {
  return request({
    url: '/business/ptactive/' + id,
    method: 'get'
  })
}

// 新增拼团活动
export function addPtactive(data) {
  return request({
    url: '/business/ptactive',
    method: 'post',
    data: data
  })
}

// 修改拼团活动
export function updatePtactive(data) {
  return request({
    url: '/business/ptactive',
    method: 'put',
    data: data
  })
}

// 删除拼团活动
export function delPtactive(id) {
  return request({
    url: '/business/ptactive/' + id,
    method: 'delete'
  })
}
